package com.bizframework.core.domain;

import java.util.ArrayList;
import java.util.List;

public class ListResult<T> extends ArrayList<T> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6860081664349603753L;

	private int totalCount;

	/**
	 * 记录总数
	 * 
	 * @return
	 */
	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int newTotalCount) {
		totalCount = newTotalCount;
	}

	public ListResult(List<T> datas) {
		super(datas);
	}

	public ListResult(int totalCount, List<T> datas) {
		this.totalCount = totalCount;
		super.addAll(datas);
	}
}